package com.ch.mapdemo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ch.mapdemo.entity.User;
import com.ch.mapdemo.mapper.UserMapper;
import com.ch.mapdemo.service.UserService;

/**
 * ch
 * @author ch
 *
 */
@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserMapper mapper;
	/**
	 * 
	 * <p>Title: ...</p>   
	 * <p>Description: </p>   
	 * @return   
	 * @see com.demo.service.UserService#getById()
	 */
	public User getById(Integer id) {
		
		return mapper.selectByPrimaryKey(id);
	}

}
